home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / GMS / Includes / games / misc.i < prev    next >
Encoding:
Text File  |  1997-04-26  |  2.7 KB  |  109 lines

  1.     IFND GMS_MISC_I
  2. GMS_MISC_I  SET  1
  3.  
  4. **
  5. **    $VER: misc.i V0.6B
  6. **
  7. **    (C) Copyright 1996-1997 DreamWorld Productions.
  8. **        All Rights Reserved
  9. **
  10.  
  11. ************************************************************************************
  12. * Entry stucture for GetObjectList().
  13.  
  14.     STRUCTURE    ObjectEntry,0
  15.     APTR    OE_Name    ;Pointer to the name, may be NULL.
  16.     APTR    OE_Object    ;Object is returned here.
  17.     LABEL    OE_SIZEOF
  18.  
  19. ;Private structure for object headers.
  20.  
  21.     STRUCTURE    DataHeader,0    ;Data header for each object.
  22.     ULONG    DH_Type    ;Type of object, eg STRC, CODE, DATA.
  23.     ULONG    DH_Next    ;Offset towards next object.
  24.     LABEL    DH_Name    ;The name of the object.
  25.  
  26. **********************************************************************************
  27. * Choose one of these when calling Set_Interrupt().
  28.  
  29. INTB_INTEN =    14             ;Master interrupt (enable only )
  30. INTB_EXTER =    13             ;External interrupt
  31. INTB_DSKSYNC =    12             ;Disk re-SYNChronized
  32. INTB_RBF =    11             ;serial port Receive Buffer Full
  33. INTB_AUD3 =    10             ;Audio channel 3 block finished
  34. INTB_AUD2 =    9              ;Audio channel 2 block finished
  35. INTB_AUD1 =    8              ;Audio channel 1 block finished
  36. INTB_AUD0 =    7              ;Audio channel 0 block finished
  37. INTB_BLIT =    6              ;Blitter finished
  38. INTB_VERTB =    5              ;start of Vertical Blank
  39. INTB_COPER =    4              ;Coprocessor
  40. INTB_PORTS =    3              ;I/O Ports and timers
  41. INTB_SOFTINT =    2              ;software interrupt rest
  42. INTB_DSKBLK =    1              ;Disk Block done
  43. INTB_TBE =    0              ;serial port Transmit Buffer Empty
  44.  
  45. * --- The KeyPress structure, used by Read_Key().
  46.  
  47.     STRUCTURE    KP,00
  48.     UWORD    KP_ID          ;GMS Identification - ignore.
  49.     UBYTE    KP_Key1        ;Newest Keypress
  50.     UBYTE    KP_Key2        ;...
  51.     UBYTE    KP_Key3        ;...
  52.     UBYTE    KP_Key4        ;Oldest Keypress
  53.     LABEL    KP_SIZEOF
  54.  
  55. * --- Special Keypresses that can be returned from Read_Key().  All other
  56. *     keys can be considered to be in ASCII format. 
  57.  
  58. K_SCS =        $80                   ;ScreenSwitch (LEFTAMIGA + M)
  59. K_DEL    =    $81
  60. K_HELP    =    $82
  61.  
  62. K_LSHIFT =    $83
  63. K_RSHIFT =    $84
  64. K_CAPS =    $85
  65. K_CTRL =    $86
  66. K_LALT =    $87
  67. K_RALT =    $88
  68. K_LAMIGA =    $89
  69. K_RAMIGA =    $8a
  70.  
  71. K_F1    =    $8b
  72. K_F2    =    $8c
  73. K_F3    =    $8d
  74. K_F4    =    $8e
  75. K_F5    =    $8f
  76. K_F6    =    $90
  77. K_F7    =    $91
  78. K_F8    =    $92
  79. K_F9    =    $93
  80. K_F10    =    $94
  81. K_F11    =    $95
  82. K_F12    =    $96
  83. K_F13    =    $97
  84. K_F14    =    $98
  85. K_F15    =    $99
  86. K_F16    =    $9a
  87. K_F17    =    $9b
  88. K_F18    =    $9c
  89. K_F19    =    $9d
  90. K_F20    =    $9e
  91.  
  92. C_UP    =    $9f
  93. C_DOWN    =    $a0
  94. C_RIGHT    =    $a1
  95. C_LEFT    =    $a2
  96.  
  97. K_SRIGHT =    $a3                   ;Special key on right.
  98. K_SLEFT =    $a4                   ;Special key on left.
  99.  
  100. * --- Special keys that are recognised under ASCII (here for convenience).
  101.  
  102. K_BAKSPC =    08
  103. K_TAB    =    09
  104. K_ENTER =    10
  105. K_RETURN =    10
  106. K_ESC    =    $1b
  107.  
  108.     ENDC    ;GMS_MISC_I
  109.